/**
 * 系统公告接口
 */
import bblosReq from '../configRequest/index'
/**
 * 上传文件
 * @param {Object} filePath
 * @param {Object} data
 */
const  uploadFile=  function(filePath,data) {
	return bblosReq.request({
		url: "/common/upload",
		formData: data,
		type:"upload",
		filePath: filePath,
		name: "file"
	})
};
/**
 * 上传文件
 * @param {Object} filePath
 * @param {Object} data
 */
const  getCode=  function(key) {
	return bblosReq.request({
		url: "/common/genCode/"+key,
		method: 'get'
	})
};
export default{
	uploadFile,
	getCode
}